# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=dunesh
pkgver=0.1.8
pkgrel=1
pkgdesc='The cozy shell'
arch=(loong64 x86_64)
url='https://github.com/adam-mcdaniel/dune'
license=(APACHE)
makedepends=(git rust)
source=("git+$url#commit=ae9bb825fb4590d7741c9e2ec96107105952c03d") # tag: v0.1.8
b2sums=(SKIP)

build() {
  cargo build --manifest-path dune/Cargo.toml --release
}

package() {
  install -Dm755 dune/target/release/$pkgname \
    "$pkgdir/usr/bin/$pkgname"
  install -Dm644 dune/LICENSE \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
